package cn.edu.cqvie.netty.handler2.codec;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;

import java.util.List;

public class MyLongToStringDecoder extends MessageToMessageEncoder<Long> {


    @Override
    protected void encode(ChannelHandlerContext ctx, Long msg, List<Object> out) throws Exception {
        System.out.println("MyLongToStringDecoder decode invoked!");

        out.add(String.valueOf(msg));
    }
}
